package com.ph.website.home.param;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

public class HomeImgParam {

    @Data
    public static class AddParam{
        @NotNull
        private String imgUrl;
        @NotNull
        private String title;

        private String subTitle1;
        private String subTitle2;
        private String subTitle3;
        @NotNull
        private Integer usable;
        private Integer hasLink;
        @NotNull
        private String linkUrl;
        @NotNull
        @Min(1)
        @Max(10)
        private Integer orderNum;
    }

    @Data
    public static class ModifyParam{
        @NotNull
        private Integer imgId;
        @NotNull
        private String imgUrl;
        @NotNull
        private String title;
        private String subTitle1;
        private String subTitle2;
        private String subTitle3;
        @NotNull
        private Integer usable;
        private Integer hasLink;
        @NotNull
        private String linkUrl;
        @NotNull
        @Min(1)
        @Max(10)
        private Integer orderNum;
    }

    @Data
    public static class DeleteParam{
        @NotNull
        private Integer imgId;
    }
}
